package xyz.ddlnt.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ZZULI_SE 210910
 * @data 2025/5/25 14:14
 */
@Schema(description = "评论")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CommentDTO {
    @Schema(description = "试题/帖子id")
    private Long id;

    @Schema(description = "评论层级：0 发布的评论；1 回复的评论")
    private Integer layer;
    @Schema(description = "评论区域 id（帖子id/0层id）")
    private Long layerAreaId;
    @Schema(description = "回复对象的用户 id（默认为试题id）")
    private Long replyToUserId;

    @Schema(description = "用户 id")
    private Long userId;
    @Schema(description = "评论内容")
    private String commentContent;
}
